﻿using System;
using System.Runtime.Serialization;

namespace VNet.VisiSuite.Service.Contact.Message.Item
{
    [DataContract(Namespace = VisiSuiteNamespace.Uri + "dto/ProductionPlanItem")]
    public class ProductionPlanItem
    {
        [DataMember(IsRequired = true)]
        public int ProductionPlanId { get; set; }

        [DataMember(IsRequired = true)]
        public int CellId { get; set; }

        [DataMember(IsRequired = true)]
        public int ProductId { get; set; }

        [DataMember(IsRequired = true)]
        public int? BraiderProductId { get; set; }

        [DataMember(IsRequired = true)]
        public string WorkOrder { get; set; }

        [DataMember(IsRequired = true)]
        public int? OperationId { get; set; }

        [DataMember(IsRequired = true)]
        public short? OperationPass { get; set; }

        [DataMember(IsRequired = true)]
        public int? StationId { get; set; }

        [DataMember(IsRequired = true)]
        public DateTime DueDate { get; set; }

        [DataMember(IsRequired = true)]
        public int Planned { get; set; }

        [DataMember(IsRequired = true)]
        public int Actual { get; set; }

        [DataMember(IsRequired = true)]
        public DateTime? ActualDate { get; set; }

        [DataMember(IsRequired = true)]
        public int SortOrder { get; set; }

        [DataMember(IsRequired = true)]
        public bool Closed { get; set; }

        [DataMember(IsRequired = true)]
        public bool Enabled { get; set; }

        [DataMember(IsRequired = true)]
        public byte[] TimeStamp { get; set; }

        [DataMember(IsRequired = true)]
        public string CreatedByUser { get; set; }

        [DataMember(IsRequired = true)]
        public DateTime CreatedDate { get; set; }

        [DataMember(IsRequired = true)]
        public string LastUpdatedByUser { get; set; }

        [DataMember(IsRequired = true)]
        public DateTime LastUpdatedDate { get; set; }

        [DataMember(IsRequired = true)]
        public string Sku { get; set; }

        [DataMember(IsRequired = true)]
        public string CellName { get; set; }
    }
}
